package com.macro.mall.dto;

/**
 * COS上传策略DTO
 * 用于前端获取上传策略信息
 * 
 * @author rhc
 * @date 2025-08-08
 */
public class CosUploadPolicyDto {
    private String policy;
    private String signature;
    private String accessKeyId;
    private String dir;
    private String host;

    public CosUploadPolicyDto() {
        // 对于直接上传模式，这些字段可以为空
        // 前端会直接使用 /cos/upload 接口上传文件
        this.policy = "";
        this.signature = "";
        this.accessKeyId = "";
        this.dir = "";
        this.host = "";
    }

    public String getPolicy() {
        return policy;
    }

    public void setPolicy(String policy) {
        this.policy = policy;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }
}